package com.atguigu.p1;

public class BankTest {

	public static void main(String[] args) {

		//创建对象
		Bank bank = new Bank();

		//添加客户
		bank.addCustomer("文学","石");
		
		//设置2000的余额
		Account account = new Account(2000);
		
		bank.getCustomer(0).setAccount(account);
		
		//bank.getCustomer(0).setAccount(new Account(2000));
		
		bank.getCustomer(0).getAccount().withdraw(500);
		
		double balance = bank.getCustomer(0).getAccount().getBalance();
		
		System.out.println("客户："+bank.getCustomer(0).getFirstName()+"的账户余额为"+balance);
		
		bank.addCustomer("元庆", "普");
		
		System.out.println("银行客户的个数为："+bank.getNumberOfCustomer());
		

	}

}
